<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets">

<h:form>
  <p:panel header="Motel Mais" style="width:100%;">        
   <p:menubar >
						<p:submenu label="Apartamento" icon="ui-icon-document">
							<p:menuitem value="Cadastrar" ajax="false" action="#{linksBean.apartamentoCadastrar}" icon="ui-icon-document" />
							<p:menuitem value="Consultar" ajax="false" action="#{linksBean.apartamentoConsultar}" icon="ui-icon-document" />
						</p:submenu>
						<p:submenu label="Produtos" icon="ui-icon-document">
						   <p:menuitem value="Cadastrar" ajax="false" action="#{linksBean.produtoCadastrar}" icon="ui-icon-document" />
						    <p:menuitem value="Consultar" ajax="false" action="#{linksBean.produtoConsultar}" icon="ui-icon-document"/>
						</p:submenu>
						<p:submenu label="Usuario" icon="ui-icon-document">
						    <p:menuitem value="Cadastrar" ajax="false" action="#{linksBean.usuarioCadastrar}" icon="ui-icon-document" />
						    <p:menuitem value="Consultar" ajax="false" action="#{linksBean.usuarioConsultar}" icon="ui-icon-document"/>
						</p:submenu>
						<p:submenu label="Hospedagem" icon="ui-icon-document">
							<p:menuitem value="Realizar Hospedagem" ajax="false" action="#{linksBean.realizarHospedagem}" icon="ui-icon-document"/>
						</p:submenu>
						<p:submenu label="Gerencial" icon="ui-icon-document">
							<p:menuitem value="Listar hospedagens por Meses/Anos" ajax="false" action="#{linksBean.realizarHospedagem}" icon="ui-icon-document"/>
							<p:menuitem value="Listar hospedagens por Dias/Horas" ajax="false" action="#{linksBean.realizarHospedagem}" icon="ui-icon-document"/>
						</p:submenu>
						<f:facet name="options">
					    	<p:commandButton  value="Deslogar" action="#{linksBean.deslogar}" ajax="false" icon="ui-icon-extlink"/>
					        
					    </f:facet>
					</p:menubar>       
                  </p:panel>  
  </h:form>         	             
  </html>